package com.example.b_308.myapplication.model.base;


import com.example.b_308.myapplication.model.base.BaseModel;

/**
 * Created by tongkang on 2017/10/31.
 */

public class BaseDepartment extends BaseModel<BaseDepartment> {
    //部门ID
    private String id;
    //公司ID
    private String company_id;
    //部门名称
    private String name;
    //创建时间
    private String create_time;

    public void setId(String id) {

        put("id", id);
        this.id = id;
    }

    public void setCompany_id(String company_id) {

        put("company_id", company_id);
        this.company_id = company_id;
    }

    public void setName(String name) {

        put("name", name);
        this.name = name;
    }

    public void setCreate_time(String create_time) {

        put("create_time", create_time);
        this.create_time = create_time;
    }

    public String getId() {
        if (null == id)
            id = getStr("id");
        return id;
    }

    public String getCompany_id() {
        if (null == company_id)
            company_id = getStr("company_id");
        return company_id;
    }

    public String getName() {
        if (null == name)
            name = getStr("name");
        return name;
    }

    public String getCreate_time() {
        if (null == create_time)
            create_time = getStr("create_time");
        return create_time;
    }
}
